<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/interceptor.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>旭宏信息办公管理系统</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			if(self!=top){
				window.top.location.href('index.jsp');
			}
			function user(){
				document.getElementById("iframe").src = "user.jsp";
			}
			function write_e(){
				document.getElementById("iframe").src = "emailrecipients";
			}
			function receiving(){
				document.getElementById("iframe").src = "emailselectFirstPage";
			}
			function deleted(){
				document.getElementById("iframe").src = "emailspam";
			}
			function vacation(){
				document.getElementById("iframe").src = "vacationselectFirstPage";
			}
			function personal(){
				document.getElementById("iframe").src = "account.jsp";
			}
			function management(){
				document.getElementById("iframe").src = "userselectFirstPage";
			}
            function exceptionOrder(){
                document.getElementById("iframe").src = "orderselectMysqlList";
            }
			function Person(){
				document.getElementById("iframe").src = "personselectFirstPage";
			}
			function exit(){
				if (confirm("确定要注销吗？")){
					window.location.href="userout";
   			    }
   			}
		</script>
	</head>
	
	<body>
		<div class="top">
			<div class="global-width">
				<img src="Images/logo.gif" class="logo" />
			</div>
		</div>
		<div class="status">
			<div class="global-width">
				
				${sessionScope.user.nickName} 你好！欢迎访问旭宏办公管理系统！ 		     		 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:exit()" >注销</a>
			</div>
		</div>
		
		<div class="main">
			<div class="global-width">
				
    			<div class="nav" id="nav">
					<div class="t">
                    </div>
					<dl>
						<dt onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">信息管理</dt>
						<dd><a href="javascript:user()">个人信息</a></dd>
					</dl>
					<dl>
						<dt	onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">邮件管理	</dt>
						<dd><a href="javascript:write_e()">写邮件</a></dd>
						<dd><a href="javascript:receiving()">收邮件</a></dd>
						<dd><a href="javascript:deleted()">垃圾邮件</a></dd>
					</dl>
					<dl>
						<dt	onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">考勤管理	</dt>
						<dd><a href="javascript:vacation()">休假</a></dd>
					</dl>
					<dl>
						<dt onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">权限管理	</dt>
						<dd><a href="javascript:personal()">个人账户</a></dd>
                        <c:if test="${sessionScope.user.role=='经理'}">
                        	<dd><a href="javascript:management()">管理账户</a></dd>
                        </c:if>
					</dl>
					<dl>
						<dt onclick="this.parentNode.className=this.parentNode.className === 'open'?'':'open';">订单管理</dt>
						<dd><a href="javascript:exceptionOrder()">异常订单</a></dd>
					</dl>
					<dl>
						<dt onclick="this.parentNode.className=this.parentNode.className === 'open'?'':'open';">部门管理</dt>
						<dd><a href="javascript:Person()">员工管理</a></dd>
					</dl>
				</div>
                
                <div style="float:right">
					<iframe id="iframe" onload="this.height=this.Document.body.scrollHeight" width="759" height="400" src="user.jsp" frameborder="0" name="frame">
                    </iframe>
				</div>
			</div>
		</div>
		
		<div class="copyright">
			<img src="Images/copyright.gif" alt="" />
		</div>
  </body>
</html>

